package com.xnyzc.lhy.order.entity.cms.amount;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
*
* 机构额度分配记录
*
* @author zhuyubin
* @since 2019-08-24
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OaSysOfficeRecord对象", description="机构额度分配记录")
public class OaSysOfficeRecord implements Serializable {

private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value="office_record_id", type = IdType.INPUT)
    private Long officeRecordId;

    @ApiModelProperty(value = "机构id")
    private Long officeId;

    @ApiModelProperty(value = "分配用户id")
    @TableField("assign_userId")
    private Long assignUserid;

    @ApiModelProperty(value = "分配部门id")
    private Long assignOffice;

    @ApiModelProperty(value = "额度")
    private BigDecimal amount;

    @ApiModelProperty(value = "额度类型(0个人额度、1部门额度)")
    private Integer amountType;

    @ApiModelProperty(value = "分配类型(0分发/1回收)(暂时不用)")
    private Integer distributionType;

    @ApiModelProperty(value = "创建人名")
    private String createName;

    @ApiModelProperty(value = "用户来源")
    private String tag;

    @ApiModelProperty(value = "扩展字段1")
    private String expand1;

    @ApiModelProperty(value = "扩展字段2")
    private String expand2;

    @ApiModelProperty(value = "扩展字段3")
    private String expand3;

    @ApiModelProperty(value = "版本号")
    @Version
    private Long version;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    public static final String OFFICE_RECORD_ID = "office_record_id";

    public static final String OFFICE_ID = "office_id";

    public static final String ASSIGN_USERID = "assign_userId";

    public static final String ASSIGN_OFFICE = "assign_office";

    public static final String AMOUNT = "amount";

    public static final String AMOUNT_TYPE = "amount_type";

    public static final String DISTRIBUTION_TYPE = "distribution_type";

    public static final String CREATE_NAME = "create_name";

    public static final String TAG = "tag";

    public static final String EXPAND1 = "expand1";

    public static final String EXPAND2 = "expand2";

    public static final String EXPAND3 = "expand3";

    public static final String VERSION = "version";

    public static final String DELETED = "deleted";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

}
